﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="cardnumb_nouse.aspx.cs"
    Inherits="EZCRS.HCMS.Web.manage.carduser.cardnumb_nouse" %>

<%@ Register Assembly="Book38.Net.CustomControl" Namespace="Book38.Net.CustomControl"
    TagPrefix="cc2" %>
<%@ Register Src="../usercontrol/titlepage.ascx" TagName="titlepage" TagPrefix="uc2" %>
<%@ Register Src="../usercontrol/jspage.ascx" TagName="jspage" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="../../Common/base_grid.js" language="javascript" type="text/javascript"></script>
</head>
<body onload="Page_Load('First');">
    <form id="form1" runat="server">
    <uc2:titlepage ID="Titlepage1" runat="server" inittitle="<%$ Resources:Site, LabCardNumbList %>">
    </uc2:titlepage>
    <table class="main-table" cellpadding="1" cellspacing="1">
        <tr class="line-even">
            <td style="text-align: center;">
                <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Site, LabCardNumb %>"></asp:Label>：
                <cc2:WebTextBox CssClass="text-line" ID="searchno" runat="server" MaxLength="10"><Value>
</Value></cc2:WebTextBox>&nbsp;&nbsp;
                <asp:Button ID="BtnSearch" runat="server" CssClass="bttn" OnClientClick="javascript:Page_Load('Search');return false;"
                    Text="<%$ Resources:Site, ButtonSearch %>" />
        </tr>
    </table>
    <br />
    <div class="optbar">
        <a href="javascript:sdel();" class="blue" onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor='#B9CEEA';"
            onmouseout="this.style.backgroundColor=currentcolor;">
            <img src="../../Themes/Standard/Images/delete.gif" border="0" />
            <asp:Literal ID="Label3" runat="server" Text="<%$ Resources:Site, LabDelete %>"></asp:Literal></a>&nbsp;
        （<asp:Label ID="Label2" runat="server" Text="<%$ Resources:Site, LabCreateReport %>"></asp:Label><asp:ImageButton
            ID="ImageButton2" runat="server" AlternateText="<%$ Resources:Site, LabCardNumbExportExcel %>"
            ImageUrl="~/Themes/Standard/Images/Excel.GIF" OnClick="ImageButton2_Click" />
        <asp:ImageButton ID="ImageButton1" runat="server" AlternateText="<%$ Resources:Site, LabCardNumbExportTxt %>"
            ImageUrl="~/Themes/Standard/Images/document.gif" OnClick="ImageButton1_Click" />）
    </div>
    <input type="hidden" id="orderkey" value="0" /><input type="hidden" id="txt_sql"
        value="" />
    </form>
    <div class="mid">
        <uc1:jspage ID="Jspage1" runat="server"></uc1:jspage>
    </div>
    <script type="text/javascript">
        function Page_Load(pageindex) {//debugger
            var sstr = $F("searchno").value;
            pageindex = pageIndexSetting(pageindex);    //pageindex的设定
            EZCRS.HCMS.myajax.CardUserUtils.cardnouseall(pageindex, sstr, setTable);
            pageLastSetting(sstr, pageindex);     //最后的赋值 
        }


        function sdel() {
            if (!confirm("<%= Resources.Site.ScriptConfirm %>"))
                return;

            var cardidlist = $F("hidcardid").value.split(',');
            var delcardid = "";
            for (i = 0; i < cardidlist.length; i++) {
                if ($F("cbx" + cardidlist[i]).checked)
                { delcardid += "," + cardidlist[i]; }
            }
            EZCRS.HCMS.myajax.CardUserUtils.cardnousedel(delcardid, delresp);
        }

        function delresp(resp) {
            if (resp.value == "1") {
                alert("<%= Resources.Site.ScriptDelSuccess %>");
                Page_Load("First");
            }
            else
            { alert("<%= Resources.Site.ScriptDelFalse %>"); }
        }


        AjaxPro.timeoutPeriod = 40000;
        var l = $F("loadinfo");
        AjaxPro.onLoading = function (b) {
            l.innerHTML = "<img src=\"../../Themes/Standard/Images/loading.gif\" alt=\"Loading\" align=\"absmiddle\" /><%= Resources.Site.LabLoadInfo %>";
        }
        AjaxPro.onError = function (e) {
            l.innerHTML = "<%= Resources.Site.LabLoadErrInfo %>";
        }
        AjaxPro.onTimeout = function (t) {
            l.innerHTML = "<%= Resources.Site.LabLoadErrInfo %>";
        }
    
    </script>
    <br />
    <asp:Label ID="LabCardNumbNote6" runat="server" Text="<%$ Resources:Site, LabCardNumbNote6 %>"></asp:Label>
</body>
</html>
